from tortoise import fields, models
class SimulationResultTotalMap(models.Model):
    id = fields.IntField(pk=True)

    simulation_result_total = fields.ForeignKeyField(
        'models.SimulationResultTotal', related_name='result_maps'
    )
    simulation_result = fields.ForeignKeyField(
        'models.SimulationResult', related_name='total_maps'
    )

    class Meta:
        table = "simulation_result_total_map"